cmake_minimum_required(VERSION 3.0.0)
include(CTest)
enable_testing()
set(APP_NAME vulkan)
include_directories(${PROJECT_SOURCE_DIR}/include) #头文件搜索目录

aux_source_directory(${PROJECT_SOURCE_DIR}/src/main src_dirs) # 指定源码目录
message("src_dirs src= ${src_dirs}")

link_directories(${PROJECT_SOURCE_DIR}/lib) # 指定库搜索目录

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin) # 指定可执行文件输出目录

add_executable(${APP_NAME} ${src_dirs})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
target_link_libraries(${APP_NAME})
include(CPack)
